package per.yuan;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@EnableDiscoveryClient
public class Provider7002 {

    public static void main(String[] args) {
        SpringApplication.run(Provider7002.class, args);
    }


    @RestController
    class TestController{

        @GetMapping("/echo1")
        public String echo1(){
            return "echo1 provider7002";
        }

        @GetMapping("/echo2")
        public String echo2(){
            return "echo2 provider7002";
        }@GetMapping("/echo3")
        public String echo3(){
            return "echo3 provider7002";
        }public String echo(){
            return "echo provider7002";
        }
    }
}
